package com.yc.tc.beans;

import java.io.Serializable;

/**
 * 景点评论表
 * 
 * @author Henry
 * 
 */
public class JdComment implements Serializable {
	private static final long serialVersionUID = 1L;

	private int cid; // 编号
	private String content; // 评论内容
	private int jbid;
	private int usid;
	private String cdate; // 评论时间

	@Override
	public String toString() {
		return "JdComment [cid=" + cid + ", content=" + content + ", jbid="
				+ jbid + ", usid=" + usid + ", cdate=" + cdate + "]";
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getJbid() {
		return jbid;
	}

	public void setJbid(int jbid) {
		this.jbid = jbid;
	}

	public int getUsid() {
		return usid;
	}

	public void setUsid(int usid) {
		this.usid = usid;
	}

	public String getCdate() {
		return cdate;
	}

	public void setCdate(String cdate) {
		this.cdate = cdate;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cdate == null) ? 0 : cdate.hashCode());
		result = prime * result + cid;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + jbid;
		result = prime * result + usid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		JdComment other = (JdComment) obj;
		if (cdate == null) {
			if (other.cdate != null)
				return false;
		} else if (!cdate.equals(other.cdate))
			return false;
		if (cid != other.cid)
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (jbid != other.jbid)
			return false;
		if (usid != other.usid)
			return false;
		return true;
	}

}
